import React, { Component } from 'react'

export default class TabItem extends Component {
  render() {
    let { item } = this.props
    return (
      <span className="item"><span className="del" onClick={() => {
        this.props.delList(item.id);
      }}>x</span><img src={item.image} alt={item.name} />{item.name}</span>
    )
  }
}

